<?php
/**
 * Created by PhpStorm.
 * User: bk
 * Date: 2016/8/30
 * Time: 11:35
 */
namespace app\controllers;

use yii\base\Controller;

class UserController extends Controller
{
    public function actionIndex()
    {
        $request = \Yii::$app->request;
        if($request->isGet)
        {
            //echo $request->get('id');die;
            return $this->renderPartial('index');
        }
        echo 'test';
    }
}